package com.guigu.pd.auth.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.common.utils.PageUtils;
import com.guigu.common.utils.Query;

import com.guigu.pd.auth.dao.AuthUserRoleDao;
import com.guigu.pd.auth.entity.AuthUserRoleEntity;
import com.guigu.pd.auth.service.AuthUserRoleService;


@Service("authUserRoleService")
public class AuthUserRoleServiceImpl extends ServiceImpl<AuthUserRoleDao, AuthUserRoleEntity> implements AuthUserRoleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AuthUserRoleEntity> page = this.page(
                new Query<AuthUserRoleEntity>().getPage(params),
                new QueryWrapper<AuthUserRoleEntity>()
        );

        return new PageUtils(page);
    }

}